package cn.wolfcode.crm.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

@Setter
@Getter
public class IncomeManage {
    private Long id;

    //学员姓名
    private Client clientName;

    //班级名称
    private Class className;

    //收款时间
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date incomeTime;

    //收款金额
    private BigDecimal incomeMoney;

    //欠费学生
    private StudentOfficial debtStudent;

    //收款类型
    private DictionaryItem incomeType;

    //收款人
    private Employee incomeMan;

    //单据号
    private String receipt;

    //营销人员
    private Employee salesman;

    //备注
    private String remark;

    //审核状态
    private Boolean state;

    //审核人
    private Employee auditor;
}